import service from '@/utils/request'

// @Tags FdArticleGraphic
// @Summary 创建FdArticleGraphic
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdArticleGraphic true "创建FdArticleGraphic"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fdArticleGraphic/createFdArticleGraphic [post]
export const createFdArticleGraphic = (data) => {
  return service({
    url: '/fdArticleGraphic/createFdArticleGraphic',
    method: 'post',
    data
  })
}

// @Tags FdArticleGraphic
// @Summary 删除FdArticleGraphic
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdArticleGraphic true "删除FdArticleGraphic"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fdArticleGraphic/deleteFdArticleGraphic [delete]
export const deleteFdArticleGraphic = (data) => {
  return service({
    url: '/fdArticleGraphic/deleteFdArticleGraphic',
    method: 'delete',
    data
  })
}

// @Tags FdArticleGraphic
// @Summary 删除FdArticleGraphic
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除FdArticleGraphic"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fdArticleGraphic/deleteFdArticleGraphic [delete]
export const deleteFdArticleGraphicByIds = (data) => {
  return service({
    url: '/fdArticleGraphic/deleteFdArticleGraphicByIds',
    method: 'delete',
    data
  })
}

// @Tags FdArticleGraphic
// @Summary 更新FdArticleGraphic
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdArticleGraphic true "更新FdArticleGraphic"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /fdArticleGraphic/updateFdArticleGraphic [put]
export const updateFdArticleGraphic = (data) => {
  return service({
    url: '/fdArticleGraphic/updateFdArticleGraphic',
    method: 'put',
    data
  })
}

// @Tags FdArticleGraphic
// @Summary 用id查询FdArticleGraphic
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.FdArticleGraphic true "用id查询FdArticleGraphic"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /fdArticleGraphic/findFdArticleGraphic [get]
export const findFdArticleGraphic = (params) => {
  return service({
    url: '/fdArticleGraphic/findFdArticleGraphic',
    method: 'get',
    params
  })
}

// @Tags FdArticleGraphic
// @Summary 分页获取FdArticleGraphic列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取FdArticleGraphic列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fdArticleGraphic/getFdArticleGraphicList [get]
export const getFdArticleGraphicList = (params) => {
  return service({
    url: '/fdArticleGraphic/getFdArticleGraphicList',
    method: 'get',
    params
  })
}

// @Tags FdArticleGraphic
// @Summary 根据二级ID集合获取文章列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "根据二级ID集合获取文章列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fdArticleGraphic/getArticleListByLevelTwoIDs [get]
export const getArticleListByLevelTwoIDs = (params) => {
  return service({
    url: '/fdArticleGraphic/getArticleListByLevelTwoIDs',
    method: 'get',
    params
  })
}
